#!/bin/bash

PID=$(ps -ef | grep websocket-demo | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
    echo Application is not found
else
    echo kill $PID
    kill -9 $PID
fi
BUILD_ID=dontKillMe
# 跳过测试编译
mvn clean package -Dmaven.test.skip=true
nohup java -jar -Xms256m -Xmx256m target/*.jar &